const mongoose = require("mongoose");

const Scheme = mongoose.Schema;

const userScheme = new Scheme({
  username: String,
  password: String,
  gender: Number, //0|1|2
  intr: String,
  avatar: String,
  role: Number,
});
// user模型 => users集合
const UserModel = mongoose.model("user", userScheme);

module.exports = UserModel;
